import bean.User;
import db.DbFactory;

import java.sql.SQLException;
import java.util.List;

public class Demo {
    public static void main(String[] args) throws SQLException {
        List<User> allUsers = DbFactory.getUserDao().find();
//        allUsers.toString();
        allUsers.stream().forEach(user -> System.out.println(user));
    }
}
